<%@page import="eu.telecom_bretagne.RECRUT.data.model.Employe"%>
<%@page import="eu.telecom_bretagne.RECRUT.service.IServiceEmploye"%>
<%@page import="javax.naming.InitialContext"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%
	InitialContext ctx = new InitialContext();
	IServiceEmploye serviceEmploye = (IServiceEmploye) ctx
			.lookup(IServiceEmploye.JNDI_NAME);
	int id = Integer.parseInt(request.getParameter("id"));
	Employe employe = serviceEmploye.lireEmploye(id);
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Information sur employe</title>
</head>
<body>
	<h1>Information sur un employe</h1>
	<table>
		<tr>
			<td>ID</td>
			<td><%=employe.getId()%></td>
		</tr>
		<tr>
			<td>Nom</td>
			<td><%=employe.getNomEmploye()%></td>
		</tr>
		<tr>
			<td>Prenom</td>
			<td><%=employe.getPrenomEmploye()%></td>
		</tr>
		<tr>
			<td>Fonction</td>
			<td><%=employe.getTypeEmploye()%></td>
		</tr>
		<tr>
			<td>Departement</td>
			<td><%=employe.getDepartement()%></td>
		</tr>

		<tr>
			<td><a href="liste_candidature.jsp?id=<%=employe.getId()%>">Liste des candidatures</a>
			</td>
			<td><a href="liste_offre.jsp?id=<%=employe.getId()%>">Liste des offres</a>
			</td>
			<td><a href="liste_dossier.jsp?id=<%=employe.getId()%>">Liste des dossiers</a>
			</td>
			<td><a href="liste_entretien.jsp?id=<%=employe.getId()%>">Liste des entretiens</a>
			</td>
			<td><a href="liste_archive.jsp?id=<%=employe.getId()%>">Liste des archives</a>
			</td>
		</tr>
	</table>
	<a href="index.jsp">Retour</a>
</body>
</html>